import 'package:flutter/cupertino.dart';
import 'package:flutter/material.dart';
import 'package:hktk_app/util/view_util.dart';

/// 字体及其相关样式
class FontUtil {
  /// 浅灰色字体
  static TextStyle fontGrey1(double fontSize,
      {FontWeight fontWeight = FontWeight.w400}) {
    return TextStyle(
      fontSize: fontSize,
      fontWeight: fontWeight,
      color: colorGrey1,
    );
  }

  /// 深灰色字体
  static TextStyle fontGrey2(double fontSize,
      {FontWeight fontWeight = FontWeight.w400}) {
    return TextStyle(
      fontSize: fontSize,
      fontWeight: fontWeight,
      color: colorGrey2,
    );
  }

  /// 灰色字体5，购买页面搜索字体
  static TextStyle fontGrey5(double fontSize,
      {FontWeight fontWeight = FontWeight.w400}) {
    return TextStyle(
        fontSize: fontSize, fontWeight: fontWeight, color: colorGrey5);
  }

  /// 灰色字体6，选择科目页面添加科目禁止标签字体颜色
  static TextStyle fontGrey6(double fontSize,
      {FontWeight fontWeight = FontWeight.w400}) {
    return TextStyle(
        fontSize: fontSize, fontWeight: fontWeight, color: colorGrey6);
  }

  /// 灰色字体9，我的页面头部提示
  static TextStyle fontGrey9(double fontSize,
      {FontWeight fontWeight = FontWeight.w400}) {
    return TextStyle(
        fontSize: fontSize, fontWeight: fontWeight, color: colorGrey9);
  }

  /// 灰色字体11，答题卡字体颜色
  static TextStyle fontGrey11(double fontSize,
      {FontWeight fontWeight = FontWeight.w400}) {
    return TextStyle(
        fontSize: fontSize, fontWeight: fontWeight, color: colorGrey11);
  }

  /// 灰色字体15，设置提示颜色
  static TextStyle fontGrey15(double fontSize,
      {FontWeight fontWeight = FontWeight.w400}) {
    return TextStyle(
        fontSize: fontSize, fontWeight: fontWeight, color: colorGrey15);
  }

  /// 黑色字体
  static TextStyle fontBlack1(
    double fontSize, {
    FontWeight fontWeight = FontWeight.w400,
    bool szYjms = false,
  }) {
    return TextStyle(
      fontSize: fontSize,
      fontWeight: fontWeight,
      color: szYjms ? colorWhite1 : colorBlack1,
    );
  }

  /// 黑色字体9
  static TextStyle fontBlack9(double fontSize,
      {FontWeight fontWeight = FontWeight.w400}) {
    return TextStyle(
      fontSize: fontSize,
      fontWeight: fontWeight,
      color: colorBlack9,
    );
  }

  /// 黑色字体10
  static TextStyle fontBlack10(double fontSize,
      {FontWeight fontWeight = FontWeight.w400}) {
    return TextStyle(
      fontSize: fontSize,
      fontWeight: fontWeight,
      color: colorBlack10,
    );
  }

  /// 蓝色字体
  static TextStyle fontBlue1(
    double fontSize, {
    FontWeight fontWeight = FontWeight.w400,
    bool szYjms = false,
  }) {
    return TextStyle(
      fontSize: fontSize,
      fontWeight: fontWeight,
      color: szYjms ? colorBlue26 : colorBlue1,
    );
  }

  /// 深红色字体1
  static TextStyle fontRed1(double fontSize,
      {FontWeight fontWeight = FontWeight.w600}) {
    return TextStyle(
      fontSize: fontSize,
      fontWeight: fontWeight,
      color: colorRed1,
    );
  }

  /// 红色字体2
  static TextStyle fontRed2(double fontSize,
      {FontWeight fontWeight = FontWeight.w400}) {
    return TextStyle(
      fontSize: fontSize,
      fontWeight: fontWeight,
      color: colorRed2,
    );
  }

  /// 白色字体
  static TextStyle fontWhile1(
    double fontSize, {
    FontWeight fontWeight = FontWeight.w500,
    bool szYjms = false,
  }) {
    return TextStyle(
      fontSize: fontSize,
      fontWeight: fontWeight,
      color: szYjms ? colorBlack13 : colorWhite1,
    );
  }

  /// 白色字体7，首页背景提示
  static TextStyle fontWhile7(double fontSize,
      {FontWeight fontWeight = FontWeight.w500}) {
    return TextStyle(
      fontSize: fontSize,
      fontWeight: fontWeight,
      color: colorWhite7,
      // fontFamily: "PangMenZhengDao",
    );
  }

  /// 黄色字体，小测日记提示
  static TextStyle fontYellow1(double fontSize,
      {FontWeight fontWeight = FontWeight.w500}) {
    return TextStyle(
      fontSize: fontSize,
      fontWeight: fontWeight,
      color: colorYellow1,
    );
  }

  /// 棕色字体
  static TextStyle fontBrown1(double fontSize,
      {FontWeight fontWeight = FontWeight.w500}) {
    return TextStyle(
      fontSize: fontSize,
      fontWeight: fontWeight,
      color: colorBrown1,
    );
  }

  /// 橙色字体
  static TextStyle fontOrange6(double fontSize,
      {FontWeight fontWeight = FontWeight.w500}) {
    return TextStyle(
      fontSize: fontSize,
      fontWeight: fontWeight,
      color: colorOrange6,
    );
  }

  /// 橙色字体12，我的错题提示
  static TextStyle fontOrange12(double fontSize,
      {FontWeight fontWeight = FontWeight.w500}) {
    return TextStyle(
      fontSize: fontSize,
      fontWeight: fontWeight,
      color: colorOrange12,
    );
  }

  /// 橙色字体13，首页标签
  static TextStyle fontOrange13(double fontSize,
      {FontWeight fontWeight = FontWeight.w500}) {
    return TextStyle(
      fontSize: fontSize,
      fontWeight: fontWeight,
      color: colorOrange13,
    );
  }
}
